package com.bydq.patrolsystem.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    @RequestMapping({"/","/index"})
    public String index(){
        return "index";
    }

    @RequestMapping("/agenda")
    public String welcome(Integer flag , Model model){
        if(flag!=null&&flag==-1)
            model.addAttribute("msg",true);
        return "agenda";
    }


    //增删查改等方法。。。。
}
